import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/query_user_detais_entity.dart';

QueryUserDetaisEntity $QueryUserDetaisEntityFromJson(Map<String, dynamic> json) {
	final QueryUserDetaisEntity queryUserDetaisEntity = QueryUserDetaisEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		queryUserDetaisEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		queryUserDetaisEntity.code = code;
	}
	final QueryUserDetaisData? data = jsonConvert.convert<QueryUserDetaisData>(json['data']);
	if (data != null) {
		queryUserDetaisEntity.data = data;
	}
	return queryUserDetaisEntity;
}

Map<String, dynamic> $QueryUserDetaisEntityToJson(QueryUserDetaisEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] = entity.data?.toJson();
	return data;
}

QueryUserDetaisData $QueryUserDetaisDataFromJson(Map<String, dynamic> json) {
	final QueryUserDetaisData queryUserDetaisData = QueryUserDetaisData();
	final bool? isDisturb = jsonConvert.convert<bool>(json['isDisturb']);
	if (isDisturb != null) {
		queryUserDetaisData.isDisturb = isDisturb;
	}
	final bool? isAttention = jsonConvert.convert<bool>(json['isAttention']);
	if (isAttention != null) {
		queryUserDetaisData.isAttention = isAttention;
	}
	final String? remark = jsonConvert.convert<String>(json['remark']);
	if (remark != null) {
		queryUserDetaisData.remark = remark;
	}
	final int? userId = jsonConvert.convert<int>(json['userId']);
	if (userId != null) {
		queryUserDetaisData.userId = userId;
	}
	return queryUserDetaisData;
}

Map<String, dynamic> $QueryUserDetaisDataToJson(QueryUserDetaisData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['isDisturb'] = entity.isDisturb;
	data['isAttention'] = entity.isAttention;
	data['remark'] = entity.remark;
	data['userId'] = entity.userId;
	return data;
}